package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.TrackStat;
import com.atguigu.tingshu.vo.album.TrackStatMqVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface TrackStatMapper extends BaseMapper<TrackStat> {

    @Update(" update track_stat set stat_num =stat_num+1 WHERE track_stat.track_id = #{trackVo.trackId} and stat_type= #{trackVo.statType}")
    void updateTrackStat(@Param("trackVo") TrackStatMqVo trackStatMqVo);
}
